package com.ny.zmb.glxt.service;

import com.alibaba.fastjson.JSONObject;
import com.ny.zmb.glxt.entity.PmStore;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ny.zmb.openapi.controller.entity.Result;

import java.util.List;

/**
 * <p>
 * 店铺 服务类
 * </p>
 *
 * @author xie
 * @since 2024-10-10
 */
public interface IPmStoreService extends IService<PmStore> {

    default PmStore getInfoByUserId(Integer userId) {
        throw new RuntimeException("门店不存在");
    }

    /**
     * 通过Business查找资料
     *
     * @param businessNo 商户号
     * @return PmStore
     */
    PmStore getInfoByBusinessNo(String businessNo);


    Result commitInfoToZMB(JSONObject obj);

    PmStore getInfoByOutMerchantNo(String outMerchantNo);

    Result commitInfoToZMBByOutMerchantNo(JSONObject jsonObject, Integer userId);

    Boolean updateMerchantNoByOutMerchantNo(String outMerchantNo, String merchantNo);

    List<PmStore> get(PmStore obj);

}
